package app.itw.tison.cloud.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.io.Serializable;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Product implements Serializable {

  //商品id
  private String id;
  //商品名称
  private String name;
  //创建时间
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;
  //商品价格  单位分
  private int price;
  //商品标题
  private String Title;
  //商品状态
  private Integer status;

  public Product() {}

  public Product(String id, String name, Date createTime, int price, String title,
      Integer status) {
    this.id = id;
    this.name = name;
    this.createTime = createTime;
    this.price = price;
    Title = title;
    this.status = status;
  }

  public String getId() {
    return id;
  }

  public String getName() {
    return name;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public int getPrice() {
    return price;
  }

  public String getTitle() {
    return Title;
  }

  public Integer getStatus() {
    return status;
  }

  public void setId(String id) {
    this.id = id;
  }

  public void setName(String name) {
    this.name = name;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public void setPrice(int price) {
    this.price = price;
  }

  public void setTitle(String title) {
    Title = title;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "Product{" +
        "id='" + id + '\'' +
        ", name='" + name + '\'' +
        ", createTime=" + createTime +
        ", price=" + price +
        ", Title='" + Title + '\'' +
        ", status=" + status +
        '}';
  }
}
